
public class Node {
	private int number;
	private Node nextNode;
	private Node shortcutNode;
	
	public Node()
	{
		number=0;
		nextNode = null;
		shortcutNode=null;
	}
	
	public Node(int n)
	{
		number=n;
		nextNode = null;
		shortcutNode = null;
	}
	
	public Node(int n, Node nextNode)
	{
		number = n;
		this.nextNode = nextNode;
		shortcutNode = null;
	}
	
	public Node(int n, Node nextNode, Node shortcutNode)
	{
		number = n;
		this.nextNode = nextNode;
		this.shortcutNode = shortcutNode;
	}
	
	public void setLink(Node nextNode, Node shortcutNode)
	{
		this.nextNode = nextNode;
		this.shortcutNode = shortcutNode;
	}
	
	public void setShortcut(Node shortcutNode)
	{
		this.shortcutNode = shortcutNode;
	}
	
	public int getNumber()
	{
		return number;
	}
	
	public Node getNext()
	{
		return nextNode;
	}
	
	public Node getShortcut()
	{
		return shortcutNode;
	}
}
